home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / DIZZY / SRC / MAKEFILE < prev    next >
Text File  |  1990-12-29  |  1KB  |  48 lines

  1. #
  2. #  This is the Makefile for xdizzy, a digital simulator for Motif/X.
  3. #
  4. #  Copyright 1990 Juri Munkki, all rights reserved
  5. #
  6. #  Please read the included file called "DizzyDoc" for information on
  7. #  what your rights are concerning this product.
  8. #
  9. #  Some Macintosh-only files are included in the make process even
  10. #  though they do not produce any object code. You might want to
  11. #  remove macdizzy.c and util.c, if compiles are taking too long.
  12. #
  13.  
  14. CC       = gcc
  15. CFLAGS   = -O    # -DSYSV for HP machines.
  16. LIBS     = -lXm -lXr3t -lX11    # -lXm -lXt -lX11 -lPW for most of you out there.
  17. LIBSRC   = -L/p/motif/lib    # This is where our motif library is kept.
  18. INCLUDES = -I/p/motif/include    # This is where our motif includes are kept.
  19.  
  20. OBJS = arrow.o dizzyx.o edit.o filesel.o macdizzy.o \
  21.        macutil.o menu.o pntonline.o quickraw.o simdisplay.o \
  22.        simfile.o simmem.o simsim.o tool.o zapper.o
  23.  
  24. SRCS = arrow.c dizzyx.c edit.c filesel.c macdizzy.c \
  25.        macutil.c menu.c pntonline.c quickraw.c simdisplay.c \
  26.        simfile.c simmem.c simsim.c tool.c zapper.c
  27.  
  28. INCS = dizzy.h protos.h macstuff.h xstuff.h elementdefs.h graphicsgems.h
  29.  
  30. BITS = tool.xbm menu.xbm misc.xbm splash.xbm
  31.  
  32. #
  33. #  Dependencies begin here:
  34. #
  35. xdizzy:    $(OBJS)
  36.     -/bin/rm -f xdizzy
  37.     $(CC) $(OBJS) $(LIBSRC) $(LIBS)    -o $@
  38.  
  39. $(OBJS): $(INCS) $(BITS)
  40.  
  41. .c.o:
  42.     $(CC) $(CFLAGS) -c $(INCLUDES) -o $@ $*.c 
  43.  
  44. clean:
  45.     -/bin/rm -f xdizzy
  46.     -/bin/rm -f *.o
  47.     -/bin/rm -f core
  48.